package cn.tedu.medicalappointmentsystemk.dao.persist.repository;

import cn.tedu.medicalappointmentsystemk.pojo.bo.PatientSelectBO;
import cn.tedu.medicalappointmentsystemk.pojo.po.PatientPO;
import cn.tedu.medicalappointmentsystemk.pojo.vo.PatientUpdateVO;
import com.github.pagehelper.Page;

import java.util.List;

public interface PatientRepository {
    Integer addNew(PatientPO po);

    PatientPO selectDetailById(Long id);

    Page<PatientSelectBO> select();

    Integer deleteById(Long id);

    Integer update(PatientUpdateVO vo);

    Page<PatientSelectBO> searchLastWeek();

    Page<PatientSelectBO> searchLastMonth();

    Page<PatientSelectBO> searchToday();

    List<PatientSelectBO> select(String nickname);
}
